package com.yugao.fintech.antelope.infra.file.assembly;

import com.yugao.fintech.antelope.infra.module.file.FileProperties;
import com.yugao.fintech.antelope.infra.module.file.model.entity.FileRecord;
import com.yugao.fintech.antelope.infra.module.file.model.rqrs.FileRecordResp;
import org.mapstruct.Mapper;

/**
 * 文件上传记录
 *

 */
@Mapper(componentModel = "spring")
public interface FileRecordAssembly {
  default FileRecordResp toFileRecordResp(FileProperties properties, FileRecord source) {
    return toFileRecordResp(source);
  }

  FileRecordResp toFileRecordResp(FileRecord source);

}
